package com.lin.pay.mall.infrastructure.dao;

import com.lin.pay.mall.infrastructure.dao.po.PayOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface IOrderDao {

    void insert(PayOrder payOrder);

    //  查询未支付订单
    PayOrder queryUnPayOrder(PayOrder payOrder);

    //更新订单支付信息
    void updateOrderPayInfo(PayOrder payOrder);

    //支付成功
    void changeOrderPaySuccess(PayOrder payOrderReq);

    //查找未支付订单
    List<String> queryNoPayNotifyOrder();

    //超时任务关闭
    List<String> queryTimeoutCloseOrderList();

    //关闭超时订单
    boolean changeOrderClose();

}
